import 'dart:math';
import 'dart:typed_data';

import 'package:hive/src/util/extensions.dart';

final key = Uint8List.fromList(List.generate(32, (i) => i));

const encryptionKey = [
  [50462976, 117835012, 185207048, 252579084],
  [319951120, 387323156, 454695192, 522067228],
  [2680320933, 2563012257, 2479783849, 2629857957],
  [3450360086, 3669902338, 3248774426, 3736748038],
  [4041181102, 1746661647, 4225076902, 1729494019],
  [1223811437, 2454693231, 1407973493, 2370943091],
  [2139248326, 395945929, 3964414319, 2337920364],
  [1966793277, 3883222866, 3030302503, 969869140],
  [1603329035, 1208581058, 2756006573, 790398913],
  [1621554501, 2278797847, 860687664, 176294500],
  [486002556, 1425978558, 4038845971, 3752288722],
  [4277803760, 2032773351, 1248110039, 1088860083],
  [1912488229, 620819867, 3585807240, 169636442],
  [2573621838, 3763335849, 2854967166, 3939367117],
  [3430546468, 3917023679, 1019353655, 920545389]
];
const decryptionKey = [
  [50462976, 117835012, 185207048, 252579084],
  [488120090, 421272350, 353376018, 286528278],
  [3376425002, 3226215204, 3310101542, 3293062944],
  [260429695, 379178081, 59366259, 312330341],
  [3177760277, 2099569969, 3093872919, 2082530871],
  [374920622, 12655055, 55100092, 299174617],
  [2587912670, 3882126575, 1594641912, 590130127],
  [4089733112, 4077209143, 4031612043, 3784871506],
  [362260028, 4076022483, 2919196459, 2396245220],
  [2742803060, 1350474819, 2687703240, 1101764250],
  [328102069, 3783088742, 1283603789, 3260150185],
  [2147853256, 3497738123, 1883776835, 837005785],
  [3947370078, 171265080, 1186427253, 2229698780],
  [4291948852, 799723199, 1608706556, 1845581861],
  [3430546468, 3917023679, 1019353655, 920545389]
];

final iv = Uint8List.fromList(List.generate(16, (i) => i * 7));

final message = Random(123).nextBytes(1024);
